#@layout()
#define main()
    #if(0) ### 为了自动提示，实际运行中不使用
    <head>
        <link rel="stylesheet" href="../../..xpsoft/common/layui/css/layui.css">
	</head>
	#end
	<div>
		<h1 style="text-align: center;font-size: 25px;margin-bottom: 20px;">找回密码</h1>
		<form id="form1" class="layui-form" action="xpLogin/findPassword" method="post" style="padding:0px 0 0 20px;text-align: center;">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-inline">
						<input class="layui-input" type="text" id="userName" name="userName" value="#(userName)" lay-verify="required|userName">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">姓名</label>
					<div class="layui-input-inline">
						<input class="layui-input" type="text" name="name"  value="#(name)" lay-verify="required">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">邮箱</label>
					<div class="layui-input-inline">
						<input class="layui-input" type="text" name="email"  value="#(email)" lay-verify="required">
					</div>
				</div>
			</div>
			<div class="layui-form-item" style="margin-bottom: 0;">
				<div class="layui-inline">
				<button class="layui-btn" lay-submit="" lay-filter="demo1">找回</button>
				<a href="xpLogin" class="layui-btn layui-btn-primary">返回</a>
				</div>
			</div>
		</form>
		<script>
			layui.use(['layer', 'form'], function() {
				var layer = layui.layer,
					$ = layui.jquery,
					layedit = layui.layedit,
					form = layui.form;

				form.verify({
					userName: function(value) {
						if(value === ''){
							return '请输入用户名';
						}
					},
					email: function(value) {
						if(value === '')
							return '请输入密码';
					}
				});
				//监听提交  
				form.on('submit(demo1)', function(){
// 					$("#password").val(MD5($("#password").val()));
//  					return false;  
				});  
			});
		    $(function(){
		    	$("#userName").focus();
				#if(msg)
					xpsoft.msg('#(msg)');	
				#end
			});
		</script>
	</div>	
		
#end
